package inventory.entity.bo;

import io.swagger.annotations.ApiModel;

import java.util.List;

/**
 * @author sxt
 * @create 2019-11-11 20:51
 */
@ApiModel(value = "出库时：type=1或2 时需要 materialTypicalId operator sourceRepositoryId targetRepositoryId;type=3时需要 name count materialTypicalId operator sourceRepositoryId targetRepositoryId")
public class MaterialBo {


    private String materialTypicalId;   //材料类型id
    private String targetRepositoryId;    //目标库仓库id
    private String sourceRepositoryId;    //来源库仓库id
    private List<String> imei;        //串号
//    private String belonging;    //弃用字段

    //仅物件有用字段
    private String name;//批号
    private Integer count;//总量
    private String stuffId;//material_stuff表（物料）的id
    private String operator;//操作员


    public List<String> getImei() {
        return imei;
    }

    public void setImei(List<String> imei) {
        this.imei = imei;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getMaterialTypicalId() {
        return materialTypicalId;
    }

    public void setMaterialTypicalId(String materialTypicalId) {
        this.materialTypicalId = materialTypicalId;
    }

    public String getTargetRepositoryId() {
        return targetRepositoryId;
    }

    public void setTargetRepositoryId(String targetRepositoryId) {
        this.targetRepositoryId = targetRepositoryId;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getSourceRepositoryId() {
        return sourceRepositoryId;
    }

    public void setSourceRepositoryId(String sourceRepositoryId) {
        this.sourceRepositoryId = sourceRepositoryId;
    }

    public String getStuffId() {
        return stuffId;
    }

    public void setStuffId(String stuffId) {
        this.stuffId = stuffId;
    }

    @Override
    public String toString() {
        return "MaterialBo{" +
                "materialTypicalId='" + materialTypicalId + '\'' +
                ", targetRepositoryId='" + targetRepositoryId + '\'' +
                ", sourceRepositoryId='" + sourceRepositoryId + '\'' +
                ", imei=" + imei +
                ", name='" + name + '\'' +
                ", count=" + count +
                ", stuffId='" + stuffId + '\'' +
                ", operator='" + operator + '\'' +
                '}';
    }
}
